#include "observable.h"

Observable::Observable()
{
}

void Observable::addObserver(Observer* o, QList<Observer*> list)
{
    list.append(o);
}

void Observable::notifyObserver(Event* e, QList<Observer*> list)
{
    for(int i = 0; i < list.size(); i++)
        list.at(i)->actionPerformed(e);
}
